#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class Profess : Business.BusinessBase<Profess, int>
	{
		#region Fields and Properties

		private String schoolCate = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String SchoolCate
		{
			get { return schoolCate; }
			set
			{
				if (value != schoolCate)
				{
					MarkChanged("SchoolCate");
					schoolCate = value;
				}
			}
		}

		private String des = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Des
		{
			get { return des; }
			set
			{
				if (value != des)
				{
					MarkChanged("Des");
					des = value;
				}
			}
		}

		private int proSetting = 0;
		/// <summary>
		/// 
		/// </summary>
		public int ProSetting
		{
			get { return proSetting; }
			set
			{
				if (value != proSetting)
				{
					MarkChanged("ProSetting");
					proSetting = value;
				}
			}
		}

		private String proShortName = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ProShortName
		{
			get { return proShortName; }
			set
			{
				if (value != proShortName)
				{
					MarkChanged("ProShortName");
					proShortName = value;
				}
			}
		}

		private String proName = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ProName
		{
			get { return proName; }
			set
			{
				if (value != proName)
				{
					MarkChanged("ProName");
					proName = value;
				}
			}
		}

		private String proCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ProCode
		{
			get { return proCode; }
			set
			{
				if (value != proCode)
				{
					MarkChanged("ProCode");
					proCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public Profess()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override Profess DataSelect(int id)
		{
			return Services.DALService.ProfessService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.ProfessService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.ProfessService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.ProfessService.Delete(this);
		}

		#endregion Base overrides
	}
}
